<?php
// +----------------------------------------------------------------------
// | 用户积分明细模块业务逻辑
// +----------------------------------------------------------------------
// | Author: myh
// +----------------------------------------------------------------------
namespace app\admin\service;

use app\common\model\UserIntegralModel;

class UserIntegralService{
    //明细类型，1-签到
    public static $signType = 1;

    /**
     * 新增积分明细
     * @param  array  $data  新增的数据
     * @return int
     */
    public static function save($data){
        $userIntegral = new UserIntegralModel;
        $userIntegral->save($data);
        return $userIntegral->id;
    }
}
